@extends('layouts.admin')

@section('content')
<div class="row">
	<div class="col-lg-12">
		<h1 class="page-header">Template - <small>{{ $template->template_name }}</small></h1>
		<ol class="breadcrumb">
			<li>
				<a href="{{ url('templates') }}">
					<span class="glyphicon glyphicon-arrow-left"></span> Back
				</a>
			</li>
			<li class="active">
				<a href="{{url('templates/'.$template->id.'/edit')}}">
					<span class="glyphicon glyphicon-edit"></span> Edit
				</a>
			</li>
			<li>
				<a href="{{url('templates/'.$template->id.'/delete')}}">
					<span class="glyphicon glyphicon-trash"></span> Delete
				</a>
			</li>
		</ol>
	</div>
</div>

<div class="row">
	<div class="col-lg-12">
		<label>Template Name</label> : {{ $template->template_name }}
	</div>
</div>
<div class="row">
	<div class="col-lg-12">
		<label>Create By</label> : {{ $template->create_by }}
	</div>
</div>
<div class="row">
	<div class="col-lg-12">
		<label>Update By</label> : {{ $template->update_by }}
	</div>
</div>
@if (count($template->templateParams) > 0)
	@foreach ($template->templateParams as $key => $template_param_name)
		<div class="row">
			<div class="col-lg-12">
				<label>Template Param #{{ $key + 1 }}</label> : {{ $template_param_name->template_param_name }}
			</div>
		</div>
	@endforeach
@endif
@stop